package org.sean.framework.mybatis.enums;


import com.baomidou.mybatisplus.annotation.IEnum;

/**
 * Type 定义
 */
public enum EnumType2 implements IEnum<Integer> {
    CONTRY(0, "国家"), D_CITY(1, "直辖市"), Pr(2, "省"), CITY(3, "市");
    /**
     * 值
     */
    private int value;
    /**
     * 说明
     */
    private String desc;

    EnumType2(int value, String desc) {
        this.value = value;
        this.desc = desc;
    }

    /**
     * 获取值
     *
     * @return
     */
    @Override
    public Integer getValue() {
        return value;
    }

    /**
     * 描述信息
     *
     * @return
     */
    public String getDesc() {
        return desc;
    }
}